package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class ColumnOptions implements TableElement {

    private int beginIndex;
    private int endIndex;
    private Identifier columnName;
    private ColumnOptionList columnOptionList;

    public ColumnOptions(int endIndex, Identifier columnName, ColumnOptionList columnOptionList) {
        this.beginIndex = columnName.getBeginIndex();
        this.endIndex = endIndex;
        this.columnName = columnName;
        this.columnOptionList = columnOptionList;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public Identifier getColumnName() {
        return columnName;
    }

    public ColumnOptionList getColumnOptionList() {
        return columnOptionList;
    }

}
